package com.zhangyj.applets.swing;

import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import java.awt.Toolkit;
import java.awt.Window;

import javax.swing.JDialog;

import com.zhangyj.applets.icons.Icons;


public class JBoastDialog extends JDialog {
	private static final long serialVersionUID = 5635342248353638259L;

	public JBoastDialog() {
		super();
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Dialog owner, boolean modal) {
		super(owner, modal);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc) {
		super(owner, title, modal, gc);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Dialog owner, String title, boolean modal) {
		super(owner, title, modal);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Dialog owner, String title) {
		super(owner, title);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Dialog owner) {
		super(owner);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Frame owner, boolean modal) {
		super(owner, modal);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc) {
		super(owner, title, modal, gc);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Frame owner, String title, boolean modal) {
		super(owner, title, modal);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Frame owner, String title) {
		super(owner, title);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Frame owner) {
		super(owner);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Window owner, ModalityType modalityType) {
		super(owner, modalityType);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Window owner, String title, ModalityType modalityType, GraphicsConfiguration gc) {
		super(owner, title, modalityType, gc);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Window owner, String title, ModalityType modalityType) {
		super(owner, title, modalityType);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Window owner, String title) {
		super(owner, title);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}

	public JBoastDialog(Window owner) {
		super(owner);
		this.setIconImage(Icons.application);
		// TODO Auto-generated constructor stub
	}
	public void setVisible(boolean b) {
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		this.setLocation((screenSize.width - this.getWidth()) / 2, (screenSize.height - this.getHeight()) / 2);
		super.setVisible(b);
	}
}
